register

abstract fun register(onAbort: () -> Unit): AbortSignal.AbortRegistration

Register a callback that fires exactly once on abort. If already aborted, fires synchronously. Returns a handle to deregister.